﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using FinApp.Core;

namespace FinApp.DataProviders.Configuration {
    public class ConfigurationProvider : Singleton<ConfigurationProvider> {

        #region Constants
        private const string BASE_URL = "http://finappsapi.bdigital.org/api/2012/";
        private const string API_KEY = "a7f13176d5";
        #endregion

        #region Members
        private string token;
        #endregion

        #region Constructors
        public ConfigurationProvider() {

        }
        #endregion

        #region Properties
        public string BaseUrl {
            get { return BASE_URL; }
        }

        public string ApiKey {
            get { return API_KEY; }
        }

        public string Token {
            get { return token; }
            set { token = value; }
        } 
        #endregion

        #region Members
        public string GetApiUrl() {
            return BASE_URL + API_KEY;
        }

        public string GetApiLoggedInUrl() {
            return BASE_URL + API_KEY + "/" + Token + "/";
        }
        #endregion

    }
}
